package com.scheduling.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scheduling.system.mapper.ShiftcalendarMapper;
import com.scheduling.system.domain.Shiftcalendar;
import com.scheduling.system.service.IShiftcalendarService;

/**
 * 班日历Service业务层处理
 * 
 * @author mj
 * @date 2025-05-07
 */
@Service
public class ShiftcalendarServiceImpl implements IShiftcalendarService 
{
    @Autowired
    private ShiftcalendarMapper shiftcalendarMapper;

    /**
     * 查询班日历
     * 
     * @param id 班日历主键
     * @return 班日历
     */
    @Override
    public Shiftcalendar selectShiftcalendarById(Long id)
    {
        return shiftcalendarMapper.selectShiftcalendarById(id);
    }

    /**
     * 查询班日历列表
     * 
     * @param shiftcalendar 班日历
     * @return 班日历
     */
    @Override
    public List<Shiftcalendar> selectShiftcalendarList(Shiftcalendar shiftcalendar)
    {
        return shiftcalendarMapper.selectShiftcalendarList(shiftcalendar);
    }

    /**
     * 新增班日历
     * 
     * @param shiftcalendar 班日历
     * @return 结果
     */
    @Override
    public int insertShiftcalendar(Shiftcalendar shiftcalendar)
    {
        return shiftcalendarMapper.insertShiftcalendar(shiftcalendar);
    }

    /**
     * 修改班日历
     * 
     * @param shiftcalendar 班日历
     * @return 结果
     */
    @Override
    public int updateShiftcalendar(Shiftcalendar shiftcalendar)
    {
        return shiftcalendarMapper.updateShiftcalendar(shiftcalendar);
    }

    /**
     * 批量删除班日历
     * 
     * @param ids 需要删除的班日历主键
     * @return 结果
     */
    @Override
    public int deleteShiftcalendarByIds(Long[] ids)
    {
        return shiftcalendarMapper.deleteShiftcalendarByIds(ids);
    }

    /**
     * 删除班日历信息
     * 
     * @param id 班日历主键
     * @return 结果
     */
    @Override
    public int deleteShiftcalendarById(Long id)
    {
        return shiftcalendarMapper.deleteShiftcalendarById(id);
    }
}
